package com.yuwenxin.core;

import java.text.SimpleDateFormat;
import java.util.Date;

public class AuxiliaryTool {
    public static String dateToString(Date date){
        return new SimpleDateFormat("yyyy-mm-dd").format(date);
    }

    public static int booleanToInt(boolean b){
        return b ? 1 : 0;
    }
}
